Can I connect my SMS Gateway to Zabbix?

 

Yes.

This guide describes how to integrate Zabbix 5.4 installation with Brevis.one SMS Gateway using HTTP API and Zabbix webhook feature.

This guide provides instructions on setting up a media type, a user, and an action in Zabbix.

 

 

ê It is recommended to create a new user for accessing the HTTP API.

 

 

 

i Supported version: Zabbix 5.4 and higher

 

 

 

iThis articel is based on https://www.zabbix.com/integrations/brevis / https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/brevis.one

 

 

 

1. Setting up brevis.one

 

  1. Create a user for HTTP API or use an existing one.

  2. Grant to the user Access to the HTTP API permission.

 

 

2. Setting up the webhook in Zabbix

 

  1. Before setting up a media type, you need to set up a global macro "{$ZABBIX.URL}", which must contain the URL to Zabbix frontend.

  2. In the Administration > Media types section, import media_brevis.one.xml.

  3. Open the newly added brevis.one media type and replace all <PLACEHOLDERS> with your values.

    The following parameters should be filled out:

     

    endpoint - the actual URL of your brevis.one API instance. The API can be addressed with the following: https://<SMS Gateway IP>/api.php

     

    username - brevis.one API username.

     

    password - user's password.

  4. The following parameters can help you customize the alerts: *ring, flash, telauto

    See HTTP API Documentation for details.

  5. Create a service Zabbix user or use any existing user, then add Media with the brevis.one. The "Send to" field should be filled as a phone number without a plus (+) sign or as "mode:option".

    Allowed modes: number (Default), group, telgroup, telnumber, user, teluser.

     

    Examples:

    37167784742 (Send SMS to the individual telephone number)

    group:11 (Send a text message to the specified user group. User groups are managed in the Configuration - Groups.)

    telnumber:37167784742 (Send a message via Automatic to the individual telephone number. Automatic tries to deliver the notification via Telegram. If this fails the notification will be delivered by a text message.)

     

     

    The "Send to" field cannot be empty. If the phone number or user/group ID is already specified in the send_to parameter, you can put any symbol in this field to comply with frontend requirements. Make sure this user has access to all hosts, for which you would like problem notifications to be sent via brevis.one HTTP API.

     

 

 

 

 

 

Related articles